package com.headingsoft.jxc.domain;

import java.util.Date;

import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.validation.constraints.Size;

import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooEntity
public class SalesOrder {
	@ManyToOne
	private Partner customer;
	private String contactPerson;
	private String contactTel;

    @Temporal(TemporalType.TIMESTAMP)
    @DateTimeFormat(style = "S-")
    private Date salesDate;
    private float otherFee;
    @Size(max=512)
    private String shipAddress;
    @ManyToOne
    private Warehouse warehouse;
    @ManyToOne
    private Employee operator;
    @Size(max=512)
    private String remark;
}
